#ifndef ROUTE_H
#define ROUTE_H

#include <QVector>
#include <QDebug>

struct routePoint
{
    int time;
    int x;
    int y;
    int key;
    bool flag = true;
    routePoint() {}
    routePoint(int time,int x,int y) {
        this->time=time;
        this->x=x;
        this->y=y;
    }
    routePoint(int time,int key) {
        this->time=time;
        this->key=key;
        flag=false;
    }
    void show(){
        if(flag == true){
            qDebug("[%d,%d,%d]",time,x,y);
        }else {
            qDebug("[%d,%d]",time,key);
        }
    }
};

class Route
{
public:
    Route();
    Route(QVector<routePoint> data);


    QVector<routePoint> data;
    void pushPoint(int time, int x, int y);
    void pushPoint(int time,int key);
    void show();
    void deleteData();
};

#endif // ROUTE_H
